---
title: "SQL-026: CP claimprofile get SC book"
summary: Retrieve the list of policies accessible to a safety consultant.
status: draft
owner: SAIF Corporation
last_reviewed: 2026-08-21
library: SAIF.Business.View.Policy
reference_type: embedded
---

# SQL-026 CP claimprofile get SC book

This stored procedure call retrieves the list of policies assigned to a safety consultant so the library can expose that user's accessible policy list.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-026 |
| **Operation type** | Read |
| **Execution method** | StoredProc |
| **Database** | SQL Server (BDS) |
| **Schema** | `[unqualified]**` |
| **Command type** | StoredProcedure |
| **Business object** | `clsPolicySecurity` |
| **Criteria property** | `N/A` |
| **Lifecycle method** | `GetPolicyListForSafetyConsultant` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `@losscontrol` | Input | String | N/A | Loss control user identifier whose accessible policy list is requested. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| N/A — Stored procedure | SELECT | Procedure body resides in the database. |

## Sample SQL

```sql
-- SQL Server (BDS) stored procedure call (CommandType.StoredProcedure, ResultSet)
-- clsPolicySecurity.GetPolicyListForSafetyConsultant, executed against DPISql (clsSQLDataLayer)
EXEC cp_claimprofile_get_sc_book
  @losscontrol = @losscontrol
-- returns columns: policy_number, policy_name
```

> The procedure body resides in the SQL Server (BDS) database; it was not retrievable for this run.

## Operations and processes
- [Retrieve accessible policy list](../operations-processes.md)

## Business rules
- [BR-VP-005: Access granted per user-access-level matrix](../business-rules.md#br-vp-005-access-granted-per-user-access-level-matrix)
- [BR-VP-007: Loss control prefix match](../business-rules.md#br-vp-007-loss-control-prefix-match)

## Sources
- `SAIF.Business.View.Policy/clsPolicySecurity.vb`
